package cc.loac.heba.pojo;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class LoginToken {
    private Integer tokenId;
    private String email;
    private String token;
    @JSONField(format ="yyyy-MM-dd kk:mm:ss")
    private Date createTime;
    @JSONField(format ="yyyy-MM-dd kk:mm:ss")
    private Date expirationTime;

    public Integer getTokenId() {
        return tokenId;
    }

    public void setTokenId(Integer tokenId) {
        this.tokenId = tokenId;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getExpirationTime() {
        return expirationTime;
    }

    public void setExpirationTime(Date expirationTime) {
        this.expirationTime = expirationTime;
    }

    @Override
    public String toString() {
        return "LoginToken{" +
                "tokenId=" + tokenId +
                ", email='" + email + '\'' +
                ", token='" + token + '\'' +
                ", createTime=" + createTime +
                ", expirationTime=" + expirationTime +
                '}';
    }
}
